Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-EpisodeOfCare2to3.html |
Url | http://hl7.org/fhir/StructureMap/EpisodeOfCare2to3 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | EpisodeOfCare2to3 |
Title | EpisodeOfCare Transforms: R2 to R3 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | EpisodeOfCareTransformsR2toR3 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/EpisodeOfCare2to3' /// name = 'EpisodeOfCare2to3' /// title = 'EpisodeOfCare Transforms: R2 to R3' /// status = 'active' uses "http://hl7.org/fhir/1.0/EpisodeOfCare" alias EpisodeOfCareR2 as source uses "http://hl7.org/fhir/3.0/EpisodeOfCare" alias EpisodeOfCare as target imports "http://hl7.org/fhir/StructureMap/*2to3" group EpisodeOfCare(source src : EpisodeOfCareR2, target tgt : EpisodeOfCare) extends DomainResource <<type+>> { src.identifier -> tgt.identifier "EpisodeOfCare-identifier"; src.status -> tgt.status "EpisodeOfCare-status"; src.statusHistory as vs0 -> tgt.statusHistory as vt0 then epcStatusHistory(vs0, vt0) "EpisodeOfCare-statusHistory"; src.type -> tgt.type "EpisodeOfCare-type"; src.condition as v -> tgt.diagnosis as d, d.condition = v "EpisodeOfCare-condition"; src.patient -> tgt.patient "EpisodeOfCare-patient"; src.managingOrganization -> tgt.managingOrganization "EpisodeOfCare-managingOrganization"; src.period -> tgt.period "EpisodeOfCare-period"; src.referralRequest -> tgt.referralRequest "EpisodeOfCare-referralRequest"; src.careManager -> tgt.careManager "EpisodeOfCare-careManager"; src where src.careTeam.exists() -> create('CareTeam') as vt0 then epiCareTeam(src, vt0, tgt) "EpisodeOfCare-careteam"; } group epcStatusHistory(source src, target tgt) extends BackboneElement { src.status -> tgt.status "statusHistory-status"; src.period -> tgt.period "statusHistory-period"; } group epiCareTeam(source src, target tgt, target tgtE) { src -> tgtE.team = reference(tgt) "careteam-link"; src.careTeam as vs -> tgt.participant as vt then epiCareTeamMember(vs, vt) "careteam-member"; } group epiCareTeamMember(source src, target tgt) extends BackboneElement { src.role -> tgt.role "careteam-role"; src.period -> tgt.period "careteam-period"; src.member -> tgt.member "careteam-member"; }
{
"resourceType" : "StructureMap",
"id" : "EpisodeOfCare2to3",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/EpisodeOfCare2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'EpisodeOfCare2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'EpisodeOfCare Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/EpisodeOfCare<span style=\"color: navy\">" </span><b>alias </b>EpisodeOfCareR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/EpisodeOfCare<span style=\"color: navy\">" </span><b>alias </b>EpisodeOfCare <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>EpisodeOfCare<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>EpisodeOfCareR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>EpisodeOfCare<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"EpisodeOfCare-identifier"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"EpisodeOfCare-status"</i><span style=\"color: navy\">;</span>\r\n src.statusHistory<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.statusHistory<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>epcStatusHistory<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"EpisodeOfCare-statusHistory"</i><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type <i>"EpisodeOfCare-type"</i><span style=\"color: navy\">;</span>\r\n src.condition<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.diagnosis<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span> d.condition = <span style=\"color: maroon\">v</span> <i>"EpisodeOfCare-condition"</i><span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.patient <i>"EpisodeOfCare-patient"</i><span style=\"color: navy\">;</span>\r\n src.managingOrganization<span style=\"color: navy\"><b> -> </b></span>tgt.managingOrganization <i>"EpisodeOfCare-managingOrganization"</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -> </b></span>tgt.period <i>"EpisodeOfCare-period"</i><span style=\"color: navy\">;</span>\r\n src.referralRequest<span style=\"color: navy\"><b> -> </b></span>tgt.referralRequest <i>"EpisodeOfCare-referralRequest"</i><span style=\"color: navy\">;</span>\r\n src.careManager<span style=\"color: navy\"><b> -> </b></span>tgt.careManager <i>"EpisodeOfCare-careManager"</i><span style=\"color: navy\">;</span>\r\n src<b> where </b>src.careTeam.exists()<span style=\"color: navy\"><b> -> </b></span><b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CareTeam'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>epiCareTeam<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"EpisodeOfCare-careteam"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>epcStatusHistory<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"statusHistory-status"</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -> </b></span>tgt.period <i>"statusHistory-period"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>epiCareTeam<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span>, <b>target</b> <span style=\"color: maroon\">tgtE</span><span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span>tgtE.team = <b>reference</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"careteam-link"</i><span style=\"color: navy\">;</span>\r\n src.careTeam<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.participant<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>epiCareTeamMember<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span> <i>"careteam-member"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>epiCareTeamMember<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.role<span style=\"color: navy\"><b> -> </b></span>tgt.role <i>"careteam-role"</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -> </b></span>tgt.period <i>"careteam-period"</i><span style=\"color: navy\">;</span>\r\n src.member<span style=\"color: navy\"><b> -> </b></span>tgt.member <i>"careteam-member"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/EpisodeOfCare2to3",
"version" : "0.1.0",
"name" : "EpisodeOfCare2to3",
"title" : "EpisodeOfCare Transforms: R2 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "EpisodeOfCareTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/EpisodeOfCare",
"mode" : "source",
"alias" : "EpisodeOfCareR2"
},
{
"url" : "http://hl7.org/fhir/3.0/EpisodeOfCare",
"mode" : "target",
"alias" : "EpisodeOfCare"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*2to3"
],
"group" : [
{
"name" : "EpisodeOfCare",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "EpisodeOfCareR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "EpisodeOfCare",
"mode" : "target"
}
],
"rule" : [
{
"name" : "EpisodeOfCare-identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-statusHistory",
"source" : [
{
"context" : "src",
"element" : "statusHistory",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "statusHistory",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "epcStatusHistory",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "EpisodeOfCare-type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-condition",
"source" : [
{
"context" : "src",
"element" : "condition",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "diagnosis",
"variable" : "d"
},
{
"context" : "d",
"element" : "condition",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "EpisodeOfCare-patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-managingOrganization",
"source" : [
{
"context" : "src",
"element" : "managingOrganization",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "managingOrganization",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-referralRequest",
"source" : [
{
"context" : "src",
"element" : "referralRequest",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "referralRequest",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-careManager",
"source" : [
{
"context" : "src",
"element" : "careManager",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "careManager",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "EpisodeOfCare-careteam",
"source" : [
{
"context" : "src",
"condition" : "src.careTeam.exists()"
}
],
"target" : [
{
"variable" : "vt0",
"transform" : "create",
"parameter" : [
{
"valueString" : "CareTeam"
}
]
}
],
"dependent" : [
{
"name" : "epiCareTeam",
"parameter" : [
{
"valueId" : "src"
},
{
"valueId" : "vt0"
},
{
"valueId" : "tgt"
}
]
}
]
}
]
},
{
"name" : "epcStatusHistory",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "statusHistory-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "statusHistory-period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "epiCareTeam",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
},
{
"name" : "tgtE",
"mode" : "target"
}
],
"rule" : [
{
"name" : "careteam-link",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgtE",
"element" : "team",
"transform" : "reference",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
]
},
{
"name" : "careteam-member",
"source" : [
{
"context" : "src",
"element" : "careTeam",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "participant",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "epiCareTeamMember",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
}
]
},
{
"name" : "epiCareTeamMember",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "careteam-role",
"source" : [
{
"context" : "src",
"element" : "role",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "role",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "careteam-period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "careteam-member",
"source" : [
{
"context" : "src",
"element" : "member",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "member",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.